package cn.hellochaos.generator.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 食材原料分类标签
 * </p>
 *
 * @author test
 * @since 2021-01-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class ShicaiCateSub extends Model<ShicaiCateSub> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer shicaiCateSubId;

    /**
     * 食材类别
     */
    private Integer idShicaiCate;

    /**
     * 食材子类别
     */
    private Integer idShicaiSubcate;

    /**
     * 食材类别名
     */
    private String shicaiCate;

    /**
     * 食材子类别名
     */
    private String shicaiCateSub;


    @Override
    protected Serializable pkVal() {
        return this.shicaiCateSubId;
    }

}
